home *** CD-ROM | disk | FTP | other *** search
- Path: jupiter.planet.net!usenet
- From: Chris Kemp <chrisk@paladn.com>
- Newsgroups: comp.lang.c
- Subject: is this string a number?
- Date: 14 Jan 1996 20:19:32 GMT
- Organization: Paladin Consultants, Inc.
- Message-ID: <4dbogk$763@jupiter.planet.net>
- NNTP-Posting-Host: denv30.planet.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2N (Windows; I; 32bit)
-
- I am inputting a string from the keyboard from a user, and
- intend to use the atol or strtol functions to convert the
- string to a number.
-
- But first I must make sure the user provided a legitimate
- number (not line 1234B).
-
- Is there a library function which will make this determination
- for me, or must I make up one of my own with somthing like
- strtok?
-
- TIA
-
-